package com.ruoyi.system.service.impl;

import com.ruoyi.common.utils.SecurityUtils;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DefTeamCompanyMapper;
import com.ruoyi.system.domain.DefTeamCompany;
import com.ruoyi.system.service.IDefTeamCompanyService;

/**
 * 队伍单位中间Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-17
 */
@Service
public class DefTeamCompanyServiceImpl implements IDefTeamCompanyService 
{
    @Autowired
    private DefTeamCompanyMapper defTeamCompanyMapper;

    /**
     * 查询队伍单位中间
     * 
     * @param teamId 队伍单位中间主键
     * @return 队伍单位中间
     */
    @Override
    public DefTeamCompany selectDefTeamCompanyByTeamId(Integer teamId)
    {
        return defTeamCompanyMapper.selectDefTeamCompanyByTeamId(teamId);
    }

    /**
     * 查询队伍单位中间列表
     * 
     * @param defTeamCompany 队伍单位中间
     * @return 队伍单位中间
     */
    @Override
    public List<DefTeamCompany> selectDefTeamCompanyList(DefTeamCompany defTeamCompany)
    {
        return defTeamCompanyMapper.selectDefTeamCompanyList(defTeamCompany);
    }

    /**
     * 新增队伍单位中间
     * 
     * @param defTeamCompany 队伍单位中间
     * @return 结果
     */
    @Override
    public int insertDefTeamCompany(DefTeamCompany defTeamCompany)
    {
        return defTeamCompanyMapper.insertDefTeamCompany(defTeamCompany);
    }

    /**
     * 修改队伍单位中间
     * 
     * @param defTeamCompany 队伍单位中间
     * @return 结果
     */
    @Override
    public int updateDefTeamCompany(DefTeamCompany defTeamCompany)
    {
        return defTeamCompanyMapper.updateDefTeamCompany(defTeamCompany);
    }

    /**
     * 批量删除队伍单位中间
     * 
     * @param teamIds 需要删除的队伍单位中间主键
     * @return 结果
     */
    @Override
    public int deleteDefTeamCompanyByTeamIds(Integer[] teamIds)
    {
        return defTeamCompanyMapper.deleteDefTeamCompanyByTeamIds(teamIds);
    }

    /**
     * 删除队伍单位中间信息
     * 
     * @param teamId 队伍单位中间主键
     * @return 结果
     */
    @Override
    public int deleteDefTeamCompanyByTeamId(Integer teamId)
    {
        return defTeamCompanyMapper.deleteDefTeamCompanyByTeamId(teamId);
    }
}
